package work1.guess;

import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        Guess guess = new Guess();
        guess.setRandom(guess.randoms());
        guess.tip();
        int guessrandom=in.nextInt();
        guess.gues(guessrandom);
        while (guessrandom!=guess.getRandom()){
            guess.tip();
            guessrandom=in.nextInt();
            guess.gues(guessrandom);
        }
        guess.sum();

    }
}
